<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Title</title>
    <script src="../js/vue.js"></script>
</head>

<body>
    <div id="app">
        {{message}}
    </div>


    <script>
        //const obj=new Object();
        // const obj = {
        //     name: "李民康",
        //     age: "20",
        //     run: function() {
        //         console.log('在跑步');
        //     },
        //     eat: function() {
        //         console.log("在吃东西");
        //     }
        // }

        //1、属性的增强写法
        const name = "渊亭无迹·静涛君";
        const age = "200";
        const des = "知水为命顺逆同，浩然莫测深浅中；无边波涛掩汹涌，渊亭不动现鱼龙。";

        //ES5的写法
        const JTJ = {
            name: name,
            age: age,
            des: des
        }
        console.log(JTJ);

        //ES6的写法
        const ES6JTJ = {
            name,
            age,
            des
        }

        console.log(ES6JTJ);
    </script>

    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                message: '我是你爹!'
            },
            methods: {}
        });
    </script>
</body>

</html>